package com.nageoffer.shortlink.project.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nageoffer.shortlink.common.dto.project.resp.ShortLinkPageRespDTO;
import com.nageoffer.shortlink.project.dao.entity.ShortLink;
import com.nageoffer.shortlink.project.dto.req.ShortLinkPageReqDTO;
import org.apache.ibatis.annotations.Param;

public interface ShortLinkMapper extends BaseMapper<ShortLink> {
    Page<ShortLinkPageRespDTO> getShortLinkPage(ShortLinkPageReqDTO reqParam);

    void incrementStats(@Param("gid")String gid,@Param("fullShortUrl") String fullShortUrl,@Param("totalPv") long pv,@Param("totalUv") long uv,@Param("totalUip") long uip);
}
